appliance: Fix searching for shared libraries on usr-merged Debian systems
authorHilko Bengen <bengen@debian.org>
Tue, 31 Aug 2021 15:00:10 +0000 (17:00 +0200)
committerHilko Bengen <bengen@debian.org>
Tue, 31 Aug 2021 15:02:19 +0000 (16:02 +0100)
commit6b4746eac7e072bbe5090ca47ad1b288a4192a11
treeaa1b58085a9040c5495c0febdc71c17267043605
parent72951862c977351c562a27eee226af0fb746c174
appliance: Fix searching for shared libraries on usr-merged Debian systems

If /lib is a symlink to usr/lib, paths to shared libraries as
determined by ld.so may differ from dpkg's file lists.

We turn the filename search pattern into a glob expression by
prefixing it with a '*', so the required packages are found again:

$ dpkg -S /lib/x86_64-linux-gnu/libpcre2-8.so.0
dpkg-query: no path found matching pattern /lib/x86_64-linux-gnu/libpcre2-8.so.0
$ dpkg -S */lib/x86_64-linux-gnu/libpcre2-8.so.0
libpcre2-8-0:amd64: /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0

Gbp-Pq: Name 0021-appliance-Fix-searching-for-shared-libraries-on-usr-.patch
appliance/Makefile.am